<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="resources/css/bootstrap.min.css">  
	<script src="resources/js/jquery.min.js"></script>
	<script src="resources/js/bootstrap.min.js"></script>
<title>快递列表</title>
</head>
<body>
	
	<nav class="navbar navbar-default navbar-static-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="/Schedule/admin/home">管理员首页</a></li>
            <li><a href="/Schedule/schedule">收件管理</a></li>
            <li><a href="/Schedule/place">货架管理</a></li>
            <li><a href="/Schedule/company">快递公司管理</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a>欢迎使用校园快递收件系统</a></li>
            <li><a>${name}</a></li>
            <li><a href="login">退出登录</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
	
 <a class="btn btn-primary" href="schedule/add">添加</a>
	<table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th>快递单号</th>
				<th>快递公司</th>
				<th>联系电话</th>
				<th>到件日期</th>
				<th>放置位置</th>
				<th></th>
				<th></th>
			</tr>
		</thead>
			<core:forEach var="schedule" items="${schedules}">		
		<tbody>
				<tr>
					<td>${schedule.id}</td>
					<td>${schedule.company}</td>
					<td>${schedule.tel}</td>
					<td>${schedule.time}</td>
					<td>${schedule.place}</td>
					<td><a href="schedule/delete?Id=${schedule.id}">删除</a></td>
					<td><a href="schedule/update?Id=${schedule.id}">修改</a></td>
				</tr>
		</tbody>
		</core:forEach>
	</table>
</body>
</html>